package com.agile.leetcode.http.protocol;

/**
 * 响应协议
 *
 * @Author:ChenZhangKun
 * @Date: 2021/5/24 21:37
 */
public class Response {
    private byte encode;
    private String content;
    private int commandLength;

    public Response(byte encode, String content, int commandLength) {
        this.encode = encode;
        this.content = content;
        this.commandLength = commandLength;
    }

    public Response() {
    }

    public byte getEncode() {
        return encode;
    }

    public void setEncode(byte encode) {
        this.encode = encode;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getCommandLength() {
        return commandLength;
    }

    public void setCommandLength(int commandLength) {
        this.commandLength = commandLength;
    }

    @Override
    public String toString() {
        return "Response{" +
                "encode=" + encode +
                ", content='" + content + '\'' +
                ", commandLength=" + commandLength +
                '}';
    }
}
